﻿using System;
namespace Loong.Net
{
    interface IHttpClient
    {
        string Accept { get; set; }
        void AddPostData(string key, string value);
        void AddPostFile(string key, string fileName);
        void CancelRequest();
        System.IO.Stream GetResponseStream();
        System.Net.WebHeaderCollection Headers { get; set; }
        bool IsRedirect { get; set; }
        HTTPMethod Method { get; set; }
        System.Net.IWebProxy Proxy { get; set; }
        string Referer { get; set; }
        string ResponseText { get; }
        void SendRequest();
        int Timeout { get; set; }
        string Url { get; set; }
        string UserAgent { get; set; }
    }
}
